#pragma once

#include "Shapes.h"
#include "mydrawengine.h"
#include "buttons.h"
#include "gamecode.h"


class PopUp
{
protected:

	Rectangle2D backdrop;

	bool isActive;

public:
	bool getActive();
	void setActive(bool setting);

	bool hovering(MousePointer mouse);

	void placing(float top, float left, float bottom, float right);
	void placing(Vector2D topLeft, Vector2D bottomRight);

	Vector2D getTopLeft();
	Vector2D getBottomRight();

	virtual void draw();
};

class OptionsMenu: public PopUp
{

public:
	void init();
	void update(MousePointer mouse);
	void draw();
};

class ExitMenu: public PopUp
{
	Button yesButton;
	Button noButton;

public:
	void init();
	void update(MousePointer mouse);
	void draw();

	void exitCheck();
};

class PopUpControl
{
public:
	OptionsMenu theOptions;
	ExitMenu theExit;

	void init();
	void update(MousePointer Mouse);
	void draw();
};